﻿using System;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Web;

namespace GolfLeague.Models
{
    [MetadataType(typeof(Side_Validation))]
    public partial class Side
    {
    }

    public class Side_Validation
    {
        [Required]
        [StringLength(50)]
        [Display(Name = "Course Side")]
        public string SideName { get; set; }

        [Required]
        [Range(1, 18)]
        [Display(Name = "Starting Hole")]
        public int StartingHole { get; set; }

        [Required]
        [Range(1, 18)]
        [Display(Name = "# of Holes Played")]
        public int PlayedHoles { get; set; }
    }
}